﻿/////////////////////////////////////////////////////////////////////
//
//	Map_FVG C# Class Library.
//
//	InfoDialog10
//	
//
//	autore: Gustavo Mainardi 
//	versione: 1.0
//	data: 01/12/2015
//
//
//	Cronologia delle versioni:
//
//	Versione 1.0 01/12/2015
//		versione originale
//
//////////////////////////////////////////////////////////////////////////
using System;
using System.Windows.Forms;

namespace Map_Fvg
{
    public partial class InfoDialog10 : Form
    {
        public InfoDialog10()
        {
            InitializeComponent();
            int noElem = ViewQ.isel_selected;

            textBox1.Text = noElem.ToString();

            listBox1.Items.AddRange(ViewQ.lpt);
            listBox1.SelectedIndex = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            this.Close();

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.Focused == true)
            {
                ViewQ.selElem = listBox1.SelectedIndex;
            }
        }
    }
}
